package com.yyq.adms.usermanage.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yyq.sos.pojo.BackBaseEntity;

/**
 * SsSysUsers entity.
 *
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ss_sys_users")
public class SysUsers extends BackBaseEntity  implements java.io.Serializable {

	private static final long serialVersionUID = -5708114432430447965L;
	private Long deptId;
	private String deptLevel;
	private String deptName;
	private String userName;
	private String userCname;
	private String fullName;
	private String telephone;
	private String userEmail;
	private String sts;
	private Date createTime;
	private Date stsTime;
	private String password;
	private String remark;

	private Date pwd_modified_time;
	
	@Column(name = "pwd_modified_time")
	public Date getPwd_modified_time() {
		return pwd_modified_time;
	}

	public void setPwd_modified_time(Date pwd_modified_time) {
		this.pwd_modified_time = pwd_modified_time;
	}


	public String toString() {
		StringBuffer str = new StringBuffer();
		str.append("\r\n用户ID="+this.id);
		str.append("\r\n部门ID="+this.deptId);
		str.append("\r\n;用户登陆名称="+this.userName);
		str.append("\r\n;用户中文名="+this.userCname);
		str.append("\r\n;用户全称="+this.fullName);
		str.append("\r\n;EMail="+this.userEmail);
		str.append("\r\n;电话="+this.telephone);
		str.append("\r\n;备注="+this.remark);
		str.append("\r\n;状态="+this.sts);
		str.append("\r\n;状态时间="+this.stsTime);
		return str.toString();
	}

	/** default constructor */
	public SysUsers() {
	}

	public SysUsers(Long userId,String userName, String userCname) {
		this.id = userId;
		this.userName = userName;
		this.userCname = userCname;
	}

	public SysUsers(Long userId,Long deptId,String deptName,String userName, String userCname, String fullName,
			String telephone, String userEmail, String sts,  String remark) {
		this.id = userId;
		this.deptId = deptId;
		this.deptName = deptName;
		this.userName = userName;
		this.userCname = userCname;
		this.fullName = fullName;
		this.telephone = telephone;
		this.userEmail = userEmail;
		this.sts = sts;
		this.remark = remark;
	}

	@Column(name = "user_name")
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "user_cname")
	public String getUserCname() {
		return this.userCname;
	}

	public void setUserCname(String userCname) {
		this.userCname = userCname;
	}

	@Column(name = "full_name")
	public String getFullName() {
		return this.fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	@Column(name = "telephone")
	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@Column(name = "user_email")
	public String getUserEmail() {
		return this.userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	@Column(name = "sts")
	public String getSts() {
		return this.sts;
	}

	public void setSts(String sts) {
		this.sts = sts;
	}

	@Column(name = "create_time")
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "sts_time")
	public Date getStsTime() {
		return this.stsTime;
	}

	public void setStsTime(Date stsTime) {
		this.stsTime = stsTime;
	}

	@Column(name = "password")
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "remark")
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "dept_id")
	public Long getDeptId() {
		return deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	@Transient
	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	@Column(name = "dept_level")
	public String getDeptLevel() {
		return deptLevel;
	}

	public void setDeptLevel(String deptLevel) {
		this.deptLevel = deptLevel;
	}

}